package indi.zhifa.core.dataauth.entity;


import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
@Repeatable(MybatisFunDataAuth.class)
public @interface MybatisDataAuth {
    /**
     * enp id = ${enpId} and domain in ${domainArr}
     *
     * @return
     */
    String authExpression() default "";

    /**
     * 如果为""，则添加到where后面
     * 如果不为"",则替换sql中的${substitutionVar}
     *
     * @return
     */
    String substitutionVar() default "";
}
